<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>

</html>
<!-- jsonp是利用script标签自身就能跨域的特征来发送请求，同时给服务器传callback参数来指明回调函数的名字 ,需要前端和后端配合起来才能完成一次跨域请求-->
<script>
    function cb(data) {
        console.log(data);
    }

</script>
<script src="https://yantianfeng.com/api/employees?callback=cb"></script>